package com.yz.xyt.mapper;

import com.yz.xyt.domain.Clazz;
import com.yz.xyt.domain.vo.ClazzVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClazzMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Clazz record);

    int insertSelective(Clazz record);

    Clazz selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Clazz record);

    int updateByPrimaryKey(Clazz record);

    Clazz selectByClazzNumber(@Param("clazzNumber") String clazzNumber);

    int updateByClazzNumberSelective(Clazz record);

    void deleteByClazzNumber(@Param("clazzNumber") String clazzNumber);

    String findClazzNumberByName(String name);

    List<ClazzVo> findClassList(ClazzVo classVo);

    List<String> findGradeList();
}